package com.zikao.question.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zikao.common.utils.PageUtils;
import com.zikao.common.utils.Query;

import com.zikao.question.dao.Tag2Dao;
import com.zikao.question.entity.Tag2Entity;
import com.zikao.question.service.Tag2Service;


@Service("tag2Service")
public class Tag2ServiceImpl extends ServiceImpl<Tag2Dao, Tag2Entity> implements Tag2Service {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<Tag2Entity> page = this.page(
                new Query<Tag2Entity>().getPage(params),
                new QueryWrapper<Tag2Entity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<Tag2Entity> selectByMap(Map<String, Object> params) {
        return baseMapper.selectByMap(params);
    }
}